$OpenBSD: patch-configure,v 1.5 2016/06/28 12:26:38 jasper Exp $
--- configure.orig	Sat Jun 11 22:51:49 2016
+++ configure	Tue Jun 28 14:01:30 2016
@@ -4341,10 +4341,10 @@ $as_echo "yes" >&6; }
 		*BSD*)
 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-			LIBMXML="libmxml.so.1.5"
+			LIBMXML="libmxml.so.${LIBmxml_VERSION}"
 			DSO="\$(CC)"
-			DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-R\$(libdir) -shared \$(OPTIM)"
-			LDFLAGS="$LDFLAGS -Wl,-R\$(libdir)"
+			DSOFLAGS="$DSOFLAGS -shared"
+			LDFLAGS="$LDFLAGS"
                         ;;
 
 		Darwin*)
@@ -4378,7 +4378,7 @@ if test -n "$GCC"; then
 	CFLAGS="-Wall $CFLAGS"
 
 	if test "x$OPTIM" = x; then
-		OPTIM="-Os -g"
+		: # OPTIM="-Os -g"
 	fi
 
 	if test "x$use_ansi" = xyes; then
